﻿@model IEnumerable<Common.Views.FaultDetailsView>

@{
    ViewBag.Title = "MyFaults";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>My Faults Page</h2>

@Html.Action("_FilterFaults", "Partial")

<table>
    <tr>
        <th>
            Fault ID
        </th>
        <th>
            Ticket Number
        </th>
        <th>
            Date
        </th>
        <th>
            Fault Details
        </th>
        <th>
            Status
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
        @Html.HiddenFor(modelItem => item.productID)
            @Html.DisplayFor(modelItem => item.FaultID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.TicketNo)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Date)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.FaultDetails)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Status)
        </td>        
    </tr>
}

</table>
